package com.neu.flashmall.product.service;

import com.github.pagehelper.PageInfo;
import com.neu.flashmall.product.entity.PmsSkuInfo;
import com.neu.flashmall.product.vo.GoodVo;
import com.neu.flashmall.product.vo.SkuGoodVo;

import java.math.BigDecimal;
import java.util.List;


public interface PmsSkuInfoService {

    PageInfo<PmsSkuInfo> getPaged(int pageNum, int pageSize, long spuId);

    PageInfo<PmsSkuInfo> selectBySkuName(String skuName,int pageNum, int pageSize,long spuId);

    String delete(Long skuId);

    String insert(PmsSkuInfo pmsSku);

    String update(PmsSkuInfo pmsSku);

    String deleteByList(List<Long> idList);

    BigDecimal getPrice(Long spuId);

    List<SkuGoodVo> getAllSkuGood(Long fatherGoodId);

    GoodVo getGoodVo(Long fatherGoodId);

    List<Long> searchByKeyWord(String keyWord);
}
